package loc.dd.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import loc.dd.entity.Pend;
import loc.dd.entity.Project;
import loc.dd.mapper.ProjectMapper;

/**
*@author 作者：huyaqi
*@version 创作时间:2023年12月4日上午8:52:02
*
*/
@Service
public class ProjectService {
	@Autowired 
	ProjectMapper projectMapper;
	
	public int addproject(Project project) {
		return projectMapper.addproject(project);
	}
	
	public HashMap<String , Object> getmessage(int id){
		return projectMapper.getmessage(id);
	}
	
	
	public List<Map<String, Object>> getallmessage(int page,int pageSize,List<String> aidList){
		return projectMapper.getallmessage(page,pageSize,aidList);
	}
	
	public List<Map<String, Object>> getzqmessage(int page,int pageSize,String uid){
		return projectMapper.getzqmessage(page,pageSize,uid);
	}
	
	public int getsum() {
		return projectMapper.getsum();
	}
	
	public List<Map<String, Object>> selectproject(String orderName,int page,int pageSize,List<String> aidList){
		return projectMapper.selectproject(orderName,page,pageSize,aidList);
	}
	
	public List<Map<String, Object>> selectzqproject(String orderName,int page,int pageSize,String uid){
		return projectMapper.selectzqproject(orderName,page,pageSize,uid);
	}
	
	public int selectsum(String orderName) {
		return projectMapper.selectsum(orderName);
	}
	
	public HashMap<String , Object> detail(int id){
		return projectMapper.detail(id);
	}
	
	
	public List<Map<String, Object>> getprocess(int id){
		return projectMapper.getprocess(id);
	}
	
	public int endproject(Pend pend) {
		return projectMapper.endproject(pend);
	}
	
	public int updatestatus(int zt,int id) {
		return projectMapper.updatestatus(zt,id);
	}
	
	public Map<String, Object> getend(int id) {
		return projectMapper.getend(id);
	}
	
	public String gettjnl(String pid) {
		return projectMapper.gettjnl(pid);
	} 
	
	public int gettjjd(String pid) {
		return projectMapper.gettjjd(pid);
	}
	
	public List<Map<String, Object>> getorderNum(List<String> aidList){
		return projectMapper.getorderNum(aidList);
	}
	
	public int getorderNumzq(String uid){
		return projectMapper.getorderNumzq(uid);
	}
	
	public int getorderProceszq(String uid){
		return projectMapper.getorderProceszq(uid);
	}
	
	public int getorderEndzq(String uid){
		return projectMapper.getorderEndzq(uid);
	}
	
	public List<Map<String, Object>> getorderProces(List<String> aidList){
		return projectMapper.getorderProces(aidList);
	}
	
	public List<Map<String, Object>> getorderEnd(List<String> aidList){
		return projectMapper.getorderEnd(aidList);
	}
	
	public List<Map<String, Object>> getindexmessage(List<String> aidList){
		return projectMapper.getindexmessage(aidList);
	}
	
	public List<Map<String, Object>> getindexmessagezq(String uid){
		return projectMapper.getindexmessagezq(uid);
	}
	
	public int inserjf(List<Map<String, Object>> resultList){
		return projectMapper.inserjf(resultList);
	}
	
	public int updateUserPoints(List<Map<String, Object>> updateUserList){
		return projectMapper.updateUserPoints(updateUserList);
	}
	
	
}
